def factorial(top, bottom=1):
    """Return the nth factorial."""
    return top * factorial(top-1, bottom) if top > bottom else bottom

if __name__ == '__main__':
    from sys import argv
    print factorial(int(argv[1]))
